<!DOCTYPE html>
<html lang="zh-hans">

<head>
    <meta charset="UTF-8">
    <title>编辑数据</title>
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap.min.css">
</head>

<body class="contanier">
    <div class="row">
        <div class="col-md-12">
            <form action="{:url('update')}" method="post">
                <label>姓名:</label>
                <input type="hidden" name="id" value="{$teacher.id}" />
                <input type="text" name="name" value="{$teacher.name}" />
                <label>用户名:</label>
                <input type="text" name="username" value="{$teacher.username}" />
                <label>性别:</label>
                <select name="sex">
                    <option value="0">男</option>
                    <option value="1" {eq name="$teacher.sex" value="1"}selected="selected"{/eq}>女</option>
                </select>
                <label>邮箱:</label>
                <input type="email" name="email" value="{$teacher.email}" />
                <button type="submit">保存</button>
            </form>
        </div>
    </div>
</body>

</html>